package com.xinfan.io.transformation;

import java.io.*;

/**
 * @Author xin
 * @Date 2022/6/9 10:08
 * @Version 1.0
 */
public class OutputStreamWriter_ {
    public static void main(String[] args) throws IOException {

        BufferedWriter bw = new BufferedWriter(
                                new OutputStreamWriter(
                                    new FileOutputStream("G:\\桌面\\out.txt", true), "gbk"));
        bw.write("我是GBK");
        bw.close();



    }
}
